package com.maxlen.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.maxlen.admin.entity.Admin;
import com.maxlen.admin.entity.dto.PageParamDto;
import com.maxlen.admin.entity.vo.AdminRoleVo;
import com.maxlen.admin.entity.vo.RoleVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2022-10-11
 */
public interface IAdminService extends IService<Admin> {

    Admin findAdminByUsername(String username);

    Page<Admin> findAllByPage(PageParamDto pageParamDto);

    boolean add(AdminRoleVo adminRoleVo);

    boolean deleteById(Long id);

    boolean updateById(AdminRoleVo adminRoleVo);

    void deleteByIdList(List<Long> multipleId);

    List<RoleVo> findRoleByAdminId(Long id);
}
